home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
online
/
motor.EXE
/
MOMX.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-10-05
|
3KB
|
104 lines
begin
write('ѥ');
end.
,D4,D5 :FILE;
f1,f2,f3,f4,F5,f6 :text;
str2,str1 :string[11];
STR3,STR4 :STRING[10];
STR5 :STRING[4];
STR6 :STRING[6];
ST1 :STRING[80];
x1,x2,x3,x4,x5,S,i :longint;
y1,y2,y3,y4 :real;
label 10,20,30;
begin
i:=0;
20:i:=i+1;
if (paramstr(i) = '') then goto 30;
ASSIGN(F4,'DAT');REWRITE(F4);
ASSIGN(F2,'SAT');
assign(f3,'t');rewrite(f3);
writeln(f3,paramstr(i));reset(f3);
readln(f3,s);close(f3);
assign(f1,'mom2.dat');
reset(F1);rewrite(f2);
writeln(f2,' 0');
writeln(f2,'SECTION');
WRITELN(F2,' 2');
WRITELN(F2,'ENTITIES');
WRITELN(F2,' 0');
writeln(f2,'POLYLINE');
WRITELN(F2,' 8');
WRITELN(F2,'0');
WRITELN(F2,' 66');
WRITELN(F2,' 1');
WRITELN(F2,' 0');
10:READLN(F1,X3,X4,X5);
IF NOT (X3 = S) THEN GOTO 10;
RESET(F1);
while not eof(f1) do
begin;
readln(f1,X3,x1,x2,y1,Y2);
IF (X2 = X5) THEN
BEGIN;
writeln(f2,'VERTEX');
WRITELN(F2,' 8');
WRITELN(F2,'0');
WRITELN(F2,' 10');
WRITELN(F2,X1);
WRITELN(F2,' 20');
WRITELN(F2,X2-(y1*100)/4);
WRITELN(F2,' 0');
writeln(f4,'TEXT');
WRITELN(F4,' 8');
WRITELN(F4,'0');
WRITELN(F4,' 10');
WRITELN(F4,X1);
WRITELN(F4,' 20');
WRITELN(F4,X2);
WRITELN(F4,' 40');
WRITELN(F4,'10');
WRITELN(F4,' 1');
WRITELN(F4,ROUND(Y1*100));
WRITELN(F4,' 0');
END;
end;
assign(f6,'momX.mnu');append(f6);
writeln(f6,'[',paramstr(i),']^c(command "dxfin" "',paramstr(i),'")');
close(f6);
WRITELN(F2,'SEQEND');
WRITELN(F2,' 8');
WRITELN(F2,'0');
WRITELN(F2,' 0');
ASSIGN(F5,PARAMSTR(i)+'.DXF');
REWRITE(F5);RESET(F2);RESET(F4);
WHILE NOT EOF(F2) DO
BEGIN;
READLN(F2,ST1);WRITELN(F5,ST1);
END;
WHILE NOT EOF(F4) DO
BEGIN;
READLN(F4,ST1);WRITELN(F5,ST1);
END;
WRITELN(F5,'ENDSEC');
WRITELN(F5,' 0');
WRITELN(F5,'EOF');
CLOSE(F1);CLOSE(F2);CLOSE(F4);CLOSE(F5);
goto 20;
30:ASSIGN(D1,'SAT');ASSIGN(D2,'DAT');ASSIGN(D3,'T');
ERASE(D1);ERASE(D2);ERASE(D3);
end.
uses crt;
var
D1,D2,D3,D4,D5 :FILE;
f1,f2,f3,f4,F5,f6 :text;
str2,str1 :string[11];
STR3,STR4 :STRING[10];
STR5 :STRING[4];
STR6 :STRING[6];
ST1 :STRING[80];
x1,x2,x3,x4,x5,S,i :longint;
y1,y2,